/**
* @file MarginSensorData.h
* @author
* @brief 沿边传感器数据类型
* @version 1.0
* @date 2020-07-23
*
* @copyright Copyright (c) 2020
*
*/

#pragma once

#include "data_struct/robot/Pose.h"
#include "lib/Time.h"

namespace behavior_controller
{
class MarginSensorData
{
public:
    /**
     * @brief 获取沿边传感器距离值
     * @return
     */
    const double &dis() const { return dis_; }

    void SetDis(double dis) { dis_ = dis; }

    MarginSensorData() {};

    MarginSensorData(double dis) : dis_(dis) {};

    void SetTime() { real_time = Time::Now(); };

    void SetTime(double _time) { real_time = _time; };

    double GetRealTime() { return real_time; };
private:
    double real_time = 0;
    double dis_;
};
} // namespace behavior_controller